<!-- Author: Edwin -->
<template>
  <div class='blank-page'>
    <div class="img">
      <el-image style="width: 100%; height: 100%"
                :src="imgUrl"
                fit="fill"></el-image>
    </div>
    <div class="text">
      <div class="content">
        <div class="teatarea">
          <div class="title">{{ $t('custom.devPage.title') }}</div>
          <div class="tips-content">{{ $t('custom.devPage.tips') }}</div>
          <div class="btn"
               size="small"
               @click="$router.push({ name: 'home' })">{{ $t('custom.devPage.btnText') }}</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {}
  },
  computed: {
    imgUrl () {
      // return 'https://oss.mspbots.ai/app/other/dev_page.png'
      return window.SITE_CONFIG['dictList'].find(e => e.dictType === 'other_download_url').dataList.find(e => e.dictLabel === 'Dev Page').dictValue
    }
  },
  methods: {}
}
</script>

<style scoped lang='scss'>
.blank-page {
  width: 100%;
  height: calc(calc(100vh - 50px - 38px - 30px));
  position: relative;

  .img {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
  }

  .text {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    .content {
      width: 50%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-content: center;
      .teatarea {
        width: 40%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        .title {
          font-size: 2em;
          font-weight: bold;
          color: #292929;
        }
        .tips-content {
          color: #979797;
          margin-top: 2em;
          margin-bottom: 3em;
          line-height: 1.8em;
        }
        .btn {
          width: 100px;
          padding: 8px 0;
          border-radius: 50px;
          background: #ff2a58;
          color: #ffffff;
          cursor: pointer;
          font-size: 1.2em;
          text-align: center;
        }
      }
    }
  }
}
</style>
